Connectivity Software User's Guide and Reference
File License Store
QuickOPC > Concepts > Development Concepts > Application Deployment > Licensing Elements > File License Store

With the File License Store, you deploy your license key in a file that resides in the file system.

This functionality is not available under (or the text does not apply to) COM development platform.

In order to register the file containing the license key: At the beginning of your code, before you call any QuickOPC, OPC Wizard operations or Rapid Toolkit for Sparkplug, obtain the static Instance Field from the LicensingManagement Class, and call the RegisterFile Method or RegisterFileWithExistenceCheck Method with appropriate arguments:

The third argument is the full (absolute) path and name to the license key file.

It is up to your code to determine the location (directory) and construct the path. In many cases, method like  Assembly.GetExecutingAssembly Method can help you with that.

Your build and deployment procedures then need to make sure that the license key file is placed at the chosen location when your program runs.

The available registration methods differ as follows:

The componentName and licenseId arguments of the LicensingManagement.RegisterXXXX methods are case-insensitive.

The license key registration call must be made before any QuickOPC, OPC Wizard or Rapid Toolkit for Sparkplug operation is performed, or before you attempt to retrieve the license info.

Note that the actual validity of the license is not checked at the time when the location is registered.

 

Sparkplug is a trademark of Eclipse Foundation, Inc. "MQTT" is a trademark of the OASIS Open standards consortium. Other related terms are trademarks of their respective owners. Any use of these terms on this site is for descriptive purposes only and does not imply any sponsorship, endorsement or affiliation.

See Also